package com.wwz.service;

import com.wwz.feign.ProductFeign;
import com.wwz.feign.UserFeign;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TccAction {

    @Autowired
    private ProductFeign productFeign;
    @Autowired
    private UserFeign userFeign;
    @Autowired
    private OrderService orderService;
/*
    @GlobalTransactional
    public Integer inserts(){
        int i = orderService.insert();
        if(i>0){
            userFeign.insert("ee");
            productFeign.update("ee");
       }
        return 1;
    }*/
}
